<?php use_helper('Date', 'SEstadisticas') ?>
<?php echo_title('Detalles de comisión académica') ?>

<div id="admin_container">
  <h1>Detalles de comisión académica</h1>

  <?php include_partial('flashes') ?>

  <div id="admin_content">
    <div id="admin_show">
    <table>
      <tbody>
        <tr>
          <td class="admin_show_name">Convocatoria:</td>
          <td><?php echo $comision->getConvocatoria() ?></td>
        </tr>
        <tr>
          <td class="admin_show_name">Carrera:</td>
          <td><?php echo $comision->getConvocatoria()->getCarrera() ?></td>
        </tr>
        <tr>
          <td class="admin_show_name">Descripción:</td>
          <td><?php echo $comision->getDescripcion() ?></td>
        </tr>
        <tr>
          <td class="admin_show_name">Orden del dia:</td>
          <td><?php echo $comision->getOrdenDelDia() ?></td>
        </tr>
        <tr>
          <td class="admin_show_name">Asistentes docentes:</td>
          <td>
            <ul class="admin_show_list">
            <?php foreach ($comision->getAsistenteDocente() as $asistente): ?>
              <li><?php echo $asistente ?></li>
            <?php endforeach ?>
            </ul>
          </td>
        </tr>
        <tr>
          <td class="admin_show_name">Asistentes estudiantes:</td>
          <td>
            <ul class="admin_show_list">
            <?php foreach ($comision->getAsistenteEstudiante() as $asistente): ?>
              <li><?php echo $asistente->getFullName() ?></li>
            <?php endforeach ?>
            </ul>
          </td>
        </tr>
      </tbody>
    </table>
    </div>

    <ul class="admin_actions">
      <li class="admin_action_edit">
        <?php echo link_to('Editar', '@comision_academica_edit?id=' . $comision->getId()) ?>
      </li>
      <li class="admin_action_list">
        <?php echo link_to('Listar', '@comision_academica') ?>
      </li>
      <?php if ($sf_user->hasCredential(sfConfig::get('audit_credential'))): ?>
      <li class="admin_action_list">
        <?php echo link_to('Historial de cambios', '@comision_academica_historic?id=' . $comision->getId()) ?>
      </li>
      <?php endif ?>
            <li class="admin_action_report">
        <?php echo link_to('Acta', '@comision_academica_acta?id=' . $comision->getId()) ?>    
      </li>
    </ul>
  </div>
</div>